#ifndef PROTOCOL_H
#define PROTOCOL_H

#include "common.h"

// 消息结构
typedef struct {
    MessageType type;
    int from_user_id;
    int to_user_id;
    char data[256];
    time_t timestamp;
} Message;

// 函数声明
int send_message(int socket, Message* msg);
int receive_message(int socket, Message* msg);

#endif
